class Student{
    private String name= "lyj";
    public int age = 19;
    public Student(){
        System.out.println("构造函数");
    }
    private Student(String str,int age){
        this.name = str;
        this.age = age;
    }
    private void eat(){
        System.out.println("吃");
    }
    public void sleep(){
        System.out.println("睡");
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class FansheTest {
    public static void main(String[] args) {
        try {
            Class<?> c1=  Class.forName("Student");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        Class<?> c2 = Student.class;
        Student student = new Student();
        Class<?> c3 = student.getClass();
    }
}
